﻿@model Kooboo.CMS.Sites.Models.View
@{
    ViewBag.Title = "Preview the version".Localize();
    Layout = "~/Views/Shared/Blank.cshtml";
}
@section Panel{
    <ul class="panel">


        <li>
            <a href="@Url.Action("Revert", ViewContext.RequestContext.AllRouteValues())" data-ajax="Post" data-confirm="@("Are you sure you want to revert to this version?".Localize())">
                @Html.IconImage("reset") @("Revert".Localize())
            </a>
        </li>


        <li>
            <a href="@ViewContext.RequestContext.GetRequestValue("return")">
                @Html.IconImage("cancel") @("Back".Localize())
            </a>
        </li>

        @foreach (var group in Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButtons.GetToolbarButtons(ViewContext.RequestContext))
        {
            @Html.Partial("_ToolbarGroupButtons", group)
        }
    </ul>
}
<div class="topbar">
    <h1 class="title">@ViewBag.Title :  <strong>@ViewContext.RequestContext.GetRequestValue("UUID") - @ViewContext.RequestContext.GetRequestValue("version")</strong></h1>
</div>
<div class="common-form fixed">
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(m => m.EngineName)
        @Html.Hidden("SiteName", ViewContext.RequestContext.GetRequestValue("SiteName"))
        @Html.Hidden("old_Key", Model.Name)
        @Html.Partial("TemplateEditor", Model)
    }
</div>
@Html.Partial("View.Script")


<script>
    $(function () {
        $('a.right').remove();

    });
</script>
